/*
 * seq_stack.h
 *
 *  Created on: 2020��9��22��
 *      Author: Administrator
 */
#include <stdbool.h>
#include "../common.h"
#ifndef SEQ_STACK_H_
#define SEQ_STACK_H_

#define STACK_SIZE 50

typedef struct SeqStack{
	ElemType elem[STACK_SIZE];
	int top;
} SeqStack;

void init_seqstack(SeqStack* stack);

bool is_empty_seqstack(SeqStack* stack);

bool is_full_seqstack(SeqStack* stack);

bool push_seqstack(SeqStack* stack, ElemType value);

ElemType pop_seqstack(SeqStack* stack);

ElemType peek_seqstack(SeqStack* stack);

void print_seqstack(SeqStack* stack);

#endif /* SEQ_STACK_H_ */
